



list_score = []
nums = 0
# goods = 0
while nums<10:
    score = input('输入学生的成绩')
    if score.isdigit() and 0 <= int(score) <= 100:
        score = int(score)
        # if score > 85:
        #     goods += 1
        list_score.append(score)
        nums += 1
    else:
        print('请输入正确格式的成绩')
print('所有成绩分别为',list_score)
# print('总分是{},优秀学生有{}名'.format(sum,goods))